package com.carleasoft.mps.adu.business.basicsInfo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carleasoft.mps.adu.business.basicsInfo.bean.entity.AuthorityUserBasicInfo;
import com.carleasoft.mps.adu.business.basicsInfo.bean.po.TargetItemPo;
import com.carleasoft.mps.adu.business.basicsInfo.bean.po.UserInfoCountPo;
import com.carleasoft.mps.adu.business.basicsInfo.bean.vo.AuthorityUserInfoVo;
import com.carleasoft.mps.adu.business.basicsInfo.bean.vo.UserInfoCountVo;
import com.carleasoft.mps.adu.business.basicsInfo.bean.vo.UserInfoVos;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * @author: yangHao
 * @createDate:2023/6/5
 * @description:
 */
@Repository
@Mapper
public interface AuthorityUserBasicInfoMapper extends BaseMapper<AuthorityUserBasicInfo> {
    List<TargetItemPo> userInfo(@Param("deptName") String deptName ,@Param("userNames") List<String> userNames);

    Page<UserInfoCountVo> userInfoCount(@Param("page") Page page, @Param("po") UserInfoCountPo userInfoCountPo);

    List<String> technology(@Param("po") UserInfoCountPo userInfoCountPo);

    List<UserInfoVos> userCodes(@Param("userCodes")Set<String> userCodes);

    String dict(@Param("resourceName") String resourceName,@Param("resource") String resource);

    List<AuthorityUserInfoVo> getUserInfoByUserNames(@Param("userNames") Set<String> userNames);
}
